import requestTypes from '../common';

// 合规列表
const getEvaluationList = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalEvaluat/QueryPageList',
		method: 'get',
		params: parameter,
	});
};

//  提交合规
const postEvaluation = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalEvaluat/Add',
		method: 'post',
		data: parameter,
		multiPartFormData: true,
	});
};
//修改合规
const postChangeEvaluation = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalEvaluat/Update',
		method: 'post',
		data: parameter,
		multiPartFormData: true,
	});
};
//删除
const postDeleteEvaluation = <T = any>(parameter: object = {}) => {
	return requestTypes<T>({
		url: '/SMS/LegalEvaluat/Delete',
		method: 'post',
		data: parameter,
	});
};
export { getEvaluationList, postEvaluation, postChangeEvaluation, postDeleteEvaluation };
